package com.q.tqb.view;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.q.tqb.model.BannerInfo;
import com.youth.banner.loader.ImageLoader;

public class GlideImageLoader extends ImageLoader {
    @Override
    public void displayImage(Context context, Object path, ImageView imageView) {
        //Glide 加载图片简单用法
        BannerInfo bannerInfo = (BannerInfo) path;
        Glide.with(context)
                .load(bannerInfo.getBanner_pic())
                .into(imageView);

    }


}